package com.auth.system.dao;

import com.auth.system.entity.build.SystemRoleEntity;
import com.auth.system.entity.dto.SystemRoleDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统角色表  Mapper 接口
 * </p>
 *
 * @author hewei
 * @since 2020-11-26
 */
@Mapper
public interface SystemRoleMapper extends BaseMapper<SystemRoleEntity> {

    /**
     *  根据用户名查询 用户所属角色
     * @param userName  用户名
     * @return  List<SystemRoleEntity>
     */
    List<SystemRoleDto> getUserRole(@Param("userName") String userName);

}
